﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true"
    CodeBehind="ConfirmInvoice.aspx.cs" Inherits="NetDon.OA.Portal.Finance.ConfirmInvoice" %>

<%@ Register TagPrefix="uc1" TagName="RequiredMark_1" Src="~/Controls/RequiredMark.ascx" %>
<%@ Register Src="~/Finance/InvoiceInfo.ascx" TagName="InvoiceInfo"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
        <script language="javascript" type="text/javascript">

            $(document).ready(function () {
                var dialog;
                if (window.top == window) {
                    dialog = window;
                } else {

                    dialog = window.top.Page.Dialog.find(function (item) {
                        return item._contentFrame.contentWindow == window;
                    });

                }

                var fieldissuingOrderIds = $get('<%=this.fieldIssuingOrderIds.ClientID %>');
                var fieldrevenueMachineAccountIds = $get('<%=this.fieldRevenueMachineAccountIds.ClientID %>');
                var fieldStateofAccountAmount = $get('<%=this.fieldStateofAccountAmount.ClientID %>');


                var reloadButton = $get('<%=btnReLoadIds.ClientID %>');
                if (dialog && !reloadButton.disabled) {

                    $text(fieldissuingOrderIds, dialog._context.dialogArguments.IssuingOrderIds);
                    $text(fieldrevenueMachineAccountIds, dialog._context.dialogArguments.RevenueMachineAccountIds);
                    $text(fieldStateofAccountAmount, dialog._context.dialogArguments.StateofAccountAmount);
                    reloadButton.click();


                }
            });


    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="panelBasic" runat="server" DefaultButton="btnSave">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                   <uc1:InvoiceInfo runat="server" ID="InvoiceInfoUC" />
                </td>
            </tr>
            <tr>
                <td style="padding-left: 150px">
                    <asp:Button ID="btnSave" runat="server" SkinID="Button80" Text="保存" OnClick="btnSave_Click" />
                    <asp:Button ID="btnCancel" runat="server" SkinID="Button80" Text="取消" CausesValidation="false" />
                      <asp:HiddenField ID="fieldIssuingOrderIds" runat="server" />
                        <asp:HiddenField ID="fieldRevenueMachineAccountIds" runat="server" />
                            <asp:HiddenField ID="fieldStateofAccountAmount" runat="server" />
                        

                          <asp:Button ID="btnReLoadIds" runat="server" SkinID="Hidden" OnClick="btnReLoadIds_Click"
        CausesValidation="false" />
                    <NetDon:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
                        ShowSummary="false" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
